package com.example.houselease.ex;


import com.example.houselease.web.ServiceCode;

/**
 * 业务处理类异常
 * */
public class ServiceException extends RuntimeException{

    public ServiceException() {
    }

    /**
     * 构造方法
     * @param serviceCode 异常状态码
     * @param message 异常信息
     * */
    public ServiceException(ServiceCode serviceCode, String message) {
        super(message);
        this.serviceCode = serviceCode;
    }

    /**
     * 异常状态码
     * */
    private ServiceCode serviceCode;

    public ServiceCode getServiceCode() {
        return serviceCode;
    }
}
